package ${packageName}.business.${lowerCaseTableName}.pojo.entity;


import lombok.*;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Long
 */
@Builder(toBuilder = true)
@ToString
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Entity
@TableName(value = "${tableName}")
@Table(name = "${tableName}")
public class ${entityName} implements Serializable {
    private static final long serialVersionUID = 1L;

    <#list columns as column>
    <#if column.primaryKey??>
    @Id
    </#if>
    @Column(name = "${column.columnName}", length = ${column.dataSize})
    private ${column.javaType} ${column.humpName};
    </#list>
}
